#include "threadContent.h"

ThreadContent::ThreadContent()
{
  stopped = false;
}

void ThreadContent::run()
{
    while(!stopped)
    {
     sendMessage();
    }
    stopped = false;
}

void ThreadContent::setMessage(QString message)
{
    messageStr = message;
}

void ThreadContent::sendMessage()
{
    emit sendSignal(messageStr);
    sleep(1);
}

void ThreadContent::stop()
{
    stopped = true;
}
